package com.enzoism.controller;

import com.enzoism.config.version.ApiVersion;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("{version}")
@ApiVersion(2)
// 进行restful接口调用，直接返回Json数据
public class VersionController2 {

    @RequestMapping("/test1")
    public String home(String name) {
        return "version2";
    }
}